Refactor

Refactored code to split main to call runGame() function. Blocks also
replenish when they're all gone