public void checkShipCollisions() {
        for (Ship ship : ships) {
            boolean tmp[] = check.checkWallCollisions(ship);
            if(tmp[0]==true){
                ship.getPos().setX(ship.getSize().getWidth()/2);
            }
            if(tmp[1]==true){
                ship.getPos().setY(ship.getSize().getHeight()/2);
            }
            if(tmp[2]==true){
                ship.getPos().setX(check.getFloatMaxX()-((float)ship.getSize().getWidth()/2));
            }
            if(tmp[3]==true){
                ship.getPos().setY(check.getFloatMaxY()-((float)ship.getSize().getWidth()/2));
            }
        }
    }