Game logic implemented