added code for running game, searching for appropriate dimension