refactoring gravity stuff + first star