further refactoring of code into player object and methods. not sure how to set shortcuts as variables