add getType() in AbstractWord, connect Search with GameState