moves game logic to gamescene
sets up functions for game logic