Fix Board#checkmate? bug and add user_error.rb