added a checkForMolecules algorithm to the game board