a slightly more robust game

with error checking