Implemented movement to sprite and overhauled some code.