adding ship movement code