update and refactor sprites