Improve the grammar in the following paragraph
He ran over to his treehouse on the mountain, where he used to spend time himself or reading a book.
He ran over to his treehouse on the mountain, where he used to spend time by himself or to read a book.