Game functions in Firebase with all win conditions and game reset.
Added background images to indicate player's side.