fixed isStraight