Script to make the graphs move