Added in comments
Removed $ symbol from the substring
Cleaned up int for guess