changed (Int, Int) to position in makeMove, loop