game logic implementing begin