Added game logic in seperate method.