refactor code
add game class and pending game specs