Elastic collisions with walls

Sometimes when the player collides with a wall, he or she will bounce off the wall.