My cat used to do this. You have to ignore the bad behavior and give him more loving. He's being bad because he want's attention, like an unloved child. Spoil him rotten except when he's bad and ignore him when he is bad. You can cover his head with a towel when he bites and move him into another room and leave him alone, no attention. He needs to be played with and loved on. It really works.