solved the first part with guessing the number