rand() broken, stole some wikipedia code - added ammo powerups