adds fuction to create an n by n board, required functions