Learning c++ while developing a game