Can't get program to recognise a ship