Fixed Board class and added helper methods so that code compiles