debugging infinite loop when moving player two's rook. committing changes before checkint out