Added function to control the flip tile event. Troubleshooting.