using each with index to style game board in css