Fixed checkStraight method.