Made start with state machine.
Added class diagram for 2d frontend.
Update 2Dfrontend.