Ball bounces off the walls