Added end game conditions and worked with gravity shifting