Proj 3: Passes q5

getAction()