Reorganized test, added 6 direction collision detection