Are you taking care of avoiding getting out of bounds?
It's not obvious for now.