basic implementation of Boggle game