added maximum guess value button, improved code and formatting