sprite work + beginning of code