added gamestate enter() function