public void play(){
        System.out.println("playing");
        lives = 3;
        restartGame();
        System.out.println("started");
        map = game.getMap();

        while(alive){
            try {
                Point move = decideNextMove();
                printMap();
                
                System.out.println("moving..." + move.x+" "+move.y);
                
                game.clickOn( move );
                
                if ( analizer.hasEnded() ){
                    continue;
                }
                
                updateLastMove(move);
                System.out.println("sdasdasd");
            } catch ( NoOpenGame ex ) {
                System.out.println("Game seems to be locked" );
            } catch (GameIsLocked ex) {
                System.out.println("Game seems to be Locked" );
            } catch (GameHasEnded ex) {
                System.out.println("Game has ended" );
            }
        }
    }