Trying to put together player validating function.