updated xpos and ypos for initial grid