added check for illegalargumentexception in Projectile, Reverses the direction if it is caught