added deltetion to powerups and general error checking