Modified ship placement algorithm

*meet json syntax
*fixed algorithm