updated game class and added event parser