Refactored player input into base level sprite class