refactored get all three in a rows method