Added current side as a conditional for invalid move