Connected the button function to all 8 button images on the tic tac toe board