Local variable referenced before assigment Python Programming : I have a small problem concerning an error in my method (as inside a class), I am currently working on a AI wanting to sort out the best move the bot can do, but when I want to return bestMove, it tells me the error...
 
   

    def computerMove(self, tile, newBoard, legalMoves, isOnCorner):
            legitMoves = self.getLegalMoves(self.board, tile)
            for x, y in legitMoves:
                 if self.isOnCorner(x, y):
                     return [x, y]
            highestPoints = -1
            for x, y in legitMoves:
                computerBoard = self.getComputerBoard(self.newBoard)
                makeYourMove(computerBoard, tile, x, y)
                points = countPoints(computerBoard)[tile]
                if points > highestPoints:
                    highestPoints = points
                    bestMove = [x][y]
            return bestMove

but the error states `UnboundLocalError: local variable 'bästaDrag' referenced before assignment`
