add maptoarray method
fix conflict
modify snake hitting wall