Updated videoLib and main with turn decision making