Minor changes

Change to check_path to detect check mate properly, and to in_check_mate
to correct bug affecting the recording of moves for some pieces