added new code, snake moves