converted all board functions to a class, and implemented it. Only thing left to do is get output right.