added word checker and diagonal moves