adding polyline collision layer and keeping player upright