refactor parsing game spec