Chess management system in PHP