fixed stupid way of detecting straights. still need to find nicer way