reorganized new floor code and other parts of MainScene