Section 22A. Nothing in this chapter shall authorize the prosecution, arrest or conviction of any person for conducting or promoting, or for allowing to be conducted or promoted, a game of cards commonly called whist or bridge, in connection with which prizes are offered to be won by chance; provided, that the entire proceeds of the charges for admission to such game are donated solely to charitable, civic, educational, fraternal or religious purposes.