Moved attemptDisplace to actionEngine class;
defined LegalDisplace command to do the above;

Made a global input listener class, taking inputs both from keyboard and from elements of the game world. Incorporated into action engine .