Maintaining lastMove state, check added to verify a unique player is making a move each time