just trying to make a combat game for fun with mainly js