Fixed qoh to return 0 instead of null when moves history is empty.