Reworked validateSpin so it sanitized the post data.

Changed some variable names around and changed what validateSpin returns
(was int, now is array).

Added a sanitized function to make incoming data more uniform and less
likely to contain exploitive material.

Changed the method I was using to check if there was post information
because it seems like a more secure way to do so.

Changed other functions to reflect the change in output from
validateSpin