Switched to hashmaps for the coordinates, but I screwed it up more than it already is