Change to position object

Object contains x and y postion arrays