Clockwork Maze

In Clockwork Maze, your goal is to get the balls out of the maze. To do it, you must rotate the cog and light up the gears. It's not as easy as you think. Use your logic and reasoning skills to solve the puzzle. How quickly can you do it?