changed available ships and directions to return a double array instead of a hash for easier parsing