renamed initGame to initBoard and replaced memset with for loops