created starting grid
implemented getCoords function