build game class