finished the conditionals in the evolveBoard function.