Added command line input
Implemented game loop