Added Code To Change Game States

Added code to change the game states in MelonJS