Bearcats sneak out win over Rams