Fixed NullPointerException when initializing board