Code is horribly structured, but basic idea is animating now.