HW4(URL:http://1.halatafl-smg-ft.appspot.com/halatafl.html) fix bugs