Added end-game condition checking, including sandbox state to continue playing after you've won, to see if you can get 4096.