implemented activation and deactivation of sprites as well as changing their image