changed the way nodes are stored (now as a dict) and fixed FPS drop when a wall is clicked