ref game class