Added a pool of directions to avoid creating so many objects and remove the conditional in directions creation
Added a pool of command objects to remove the conditional from its creation