linked game logic to front end, minor debugging