makes pages invisible when they're added in _Pages
calls getGames to add initial game pages in Lightsquare and moves gamePages array out of the template