Java poker 24 point algorithm