Removed nextPage variable from random page