Cleanup if statements in board.rs

Use match instead of an if statement (In this case it's cleaner).

And chain together an if statement where the first three branches
were the same thing. (Much cleaner)