The code retrieves document.playerAction["action1"] (A select input type) and removes options 2-end (there is a max of 6). Then, if a certain player (x-1 causes it to loop 1-4) has a health of 0, it splices out that element).

Everything works fine, except I get an error saying that
"Object #<an HTMLSelectElement> has no method 'splice' "
and it refuses to execute the if.