Applied singleton to LogicMain.

This is to prevent overlapping of tasks when multiple LogicMain's
objects are created.