added bouncing off walls