def execute_move(board, move):
    """Executes a move on a board and gives new board as output."""
    from_square = move[0]
    to_square = move[1]

    moving_piece = board[from_square[0]][from_square[1]]

    board[to_square[0]][to_square[1]] = moving_piece

    board[from_square[0]][from_square[1]] = ""

    return board