Implemented proper border transfer for every axis... not working perfectly though