I forgot to add collision in the upper gravity for the game to end which makes the game to not end when falling up. I did it for the bottom.