Added unit tests; now plays actual trivial games.