Bug identified in three of a kind function with input 20