RType like game in C++