In your first program change this
if (val == 'd' && poser > 0)
to this
else if (val == 'd' && poser > 0)
so that it only applies one of the options at any one time
...R
In your first program change this
if (val == 'd' && poser > 0)
to this
else if (val == 'd' && poser > 0)
so that it only applies one of the options at any one time
...R