refactor code for scrubbing, changing display to game + adding input component + input to functions