Made command factory and added to classes. Continued on algebraic notation decoder