Added x y positions to the entity class