Updaing sprite and tiles