implemented update of gamestate
work on gameLoop