Added collision detection with the boundary