Built and tested algorithm that should check for straights