Minor optimizations
Better use of Enum parameters
Use FlxUISubState