Game logic working