created the main function and edited the showBoard function so it didnt give a str error