fixed bug of speeding game

and added initial code for HEX.