Changed the y rotation/translation check to use the boolean 'yShouldTranslate' rather than 'yShouldRotate' so that the if-else clause makes more sense.