Made some more abstract functions and created a file for sprite stuff