changed the name of the class again and added lastCoords[0] to other if