Men's basketball beats UConn, 78-71, to snap 3-game skid