update sprite states