Current position, trying to send out of bounds

You can find your answer in this post. A couple of different solutions depending on your needs.: