initial movement code for spider (#12)