Seperated game logic into own file