I agree with the playpen idea. Be consistent and put him in that every time he hits. If you are outside or somewhere where the playpen isn't accessible, make him sit with you for so long. Eventually he will learn to not hit!! Good luck!