Moved Knockback into a separate function