Implemented the command pattern to abstract command input to event
execution translations in an organized manner. Seems to have no effect
on efficiency so far but lots of code could be removed from the Player
class and main.lua.