Chess website script for real-time and correspondence play using mysql5 and php 5+