started writing a battleships player and separated out shared code