updated syntax of getClosestOf()

the game now launches! yay!