Are these sentences correct:
1-For something to do, I began taking piano classes.
2-For something to eat, I went to Harry's place, which was near the office.
I think they both work. I guess it would be more natural in 2 to put 'for something to eat' at the end, but I don't think it is wrong as it is.
They're both OK.
Remember - if you don't use correct capitalisation, punctuation and spacing, anything you write will be incorrect.