For what ever reason- this spot directing code won't work

Your code is correct. What exactly is wrong? Are you getting an error message? What does it say?