Unstable version - rewriting sprite system