Added animations, reworked code so that no errors are present.