Make all gameboard functions public and simplify their definitions
Some more refactoring