It works perfectly now. Just that there is a specific way the boundaries need to be drawn in the editor so that it functions. I'll explain later.