Finalised game logic