adding a way to add mod in constructor
adding parseMap
separating client code and game code