more changes to make it work under sunfish
more updates to play.py to play in a loop