Baby keeps hitting head on wall

Ki

Anybody know how to stop my son from banging his head on the wall? He’ll go under the table and lean against it and just start banging it. I’m worried about his safety. But I think he just thinks it’s a game