public void tryAddShip(Point pl, Point pc) {
		int len = this.getShipLen(pl, pc);
		//System.out.println(len);
		//System.out.println("Ship count : " + shipCount );
		if ((len <= 0) || (len >= 5)) {
			return;
		}

		int aviableShips = ships.get(len);
		if (aviableShips > 0) {
			Ship sh = new Ship(gameField, len); 
		
			if (pl.x == pc.x) {
				int min = (pl.y < pc.y) ? pl.y : pc.y;
				if (sh.CheckPlace(pl.x, min, len, 0)){
					shipCount ++;
					shipsArray[shipCount - 1] = sh;
					sh.SetShip(pl.x, min, len, 0);
					gameField = sh.getField();
					ships.put(len, aviableShips - 1);
					this.setLabels();
				}
				
			} else {
				int min = (pl.x < pc.x) ? pl.x : pc.x;
				
				if (sh.CheckPlace(min, pl.y,len, 1)){
					shipCount ++;
					shipsArray[shipCount - 1] = sh;
					sh.SetShip(min, pl.y, len, 1);
					gameField = sh.getField();
					ships.put(len, aviableShips - 1);
					this.setLabels();
				}
			}
			
			//sh.getField().show();
		}
		
		if (shipCount == 10){
			startButton.setEnabled(true);
			gameField.setShipsArray(shipsArray);
		}

	}