building grid and working on generating paths in maze