added wall check, and made rotations rotate instead of flip.