Refactored collision logic in Space to a manager.