Added nearly perfect collision detection for both sides