Simple state manager implemented. Need to look into a better class system.