added utilities to build up game