Refactored rotation code to try avoid crash, inserted functionality to invert y axis movement on y-press