More work on back end game logic