been debugging, still need getpossiblemoves() to work but have good idea