move logic out of main into game class
Merge pull request #4 from dhan12/add.gameloop

move logic out of main into game class