Making the best move on the chess board!