Recreated random formula using arrays to calculate damage to players' health