corrected the server bug that caused desynch when a player was castling