Implemented more efficient gravity calculations and collision detection
Handle events better, still not optimal