Reboot chess2 in swift.