The beauty of compiler errors is that they tell you how to fix them. When it says "gameboard not declared in this scope" -- that means that the function where the error is doesn't know about gameboard, which means you forgot to pass the gameboard into the function. When it says "right-hand operand of comma has no effect", that means you're not supposed to have a comma there. See? Simple.