created location class and behaviors redesigning move and collition detection