Implemented collision detection for game objects