Redesigned board.java