Thanks for playing my game! Yes, the boundary check logic is pretty bad, it's the first thing I want to fix when I get a chance!