implemented lateral collision with bricks