Added initialize board function