Added bounds check to gen algo
Merge branch 'master' of https://github.com/Brandoon365/team18final