works but sloppy and no end criteria or new game