moves repeatedly used methods to helper file and refactors games_spec to use them