added double down and fixed bugs