changed gravity & made fixes to sorting