added sprites and edited game loop to load resources