add is_legal_move function to board, fixed minor error