Add testing for the game

`$li` does not seem to be used below. Did you mean `$li1`, `$li2`?