You have to kill the monster (hp should be zero at the end of 5 nights) only then you get the good ending :)