MainClass runtime implemented

Whole project logic is completed. Now only graphics part left.