Use variable for games to load

Instead of hard coding 10 for the games to load, use the
amountOfGamesToLoad variable.