Added component system to States. Fixed input object stacking bug. Added saving and loading of custom maps