change direcion of projectile when it collision with border