issue #3 fixed: budget is now in seconds per move
reorganizing code, allowing policy to be passed in