How big is that red plastic cup next to him in that other picture? If it's as large as I think it is, you got an old octopus. Possibly at the end of its life. Take care of it and it might recover. They can regrow legs. But, be prepared for the worst. Something most of us have dealt with is getting a new octopus that doesn't stick around long.