Impliments isValidSet function
Updates isValidSet test
isValidSet now catches out of range valuses