old attempt at game c++ engine