Made beginning and ending conditions and you can actually lose the game now.