initial class abstraction from main.cpp, also created Game class