checkmate should be working for both white and black