added row and cols length
more refactoring on ship.js
fixed padding on ship.js
more fixed on ship.js