Added support for looking up a move in a book

The code to return the best or a random move is still not perfect.