Refactoring and reversed update to flixel