Create array to contain Ypos before gets reset