Changed board array to a parameter, refactoring to make a ref class