Avoid the red obstacles. After 2.5 seconds, your ghost will appear and repeat your moves. Avoid it too.