basic refactoring

spilt sprite data to array