A simple script to play chess