Added collision detection for left/right