Do you kill it when you smack it against the wall? If so, that's not live feeding. If it's still alive, then this is a dangerous practice that puts your snake at risk. Your snake is perfectly capable of taking down a rat on its own, no need for you to 'help' incapacitate the rodent.