some alpha-beta code (not working yet)