Write basic version of getBestMove as well as shortestDistance