moving inventory moving into sprite.cpp