handleBoundsCollision