createGrid() function

Cleaned up the main Fanorona code a little bit