chess UI and AI for jquery