@Override
    public void Lands (Player P)
    {
        //If nobody owns it      
        if (Owner == -1)
        {
            //Ask if you want to buy.
            Game.requestBuy(P, this);
        }
        //If you land on enemy players shipping line
        else if (Owner != Game.players.indexOf(P))
        {
            if ((Game.players.get(Owner)).InPrison == false)
            {
                //Pay to your enemy depending on how many shipping lines your enemy owns
                int Pay = 0;
                int cnt = CountShippingLines();
                Player OPlayer = Game.players.get(Owner);
                if (cnt == 1)
                {
                    Pay = 500;
                    JOptionPane.showMessageDialog(null, "Du betaler leje: " + Pay + " til ejeren");
                    P.ChangeMoney(-Pay);
                    OPlayer.ChangeMoney(Pay);
                }
                else if (cnt == 2)
                {
                    Pay = 1000;    
                    JOptionPane.showMessageDialog(null, "Du betaler leje: " + Pay + " til ejeren");
                    P.ChangeMoney(-Pay);
                    OPlayer.ChangeMoney(Pay);
                }
                else if (cnt == 3)
                {
                    Pay = 2000;    
                    JOptionPane.showMessageDialog(null, "Du betaler leje: " + Pay + " til ejeren");
                    P.ChangeMoney(-Pay);
                    OPlayer.ChangeMoney(Pay);
                }
                else if (cnt == 4)
                {
                    Pay = 4000;
                    JOptionPane.showMessageDialog(null, "Du betaler leje: " + Pay + " til ejeren");
                    P.ChangeMoney(-Pay);
                    OPlayer.ChangeMoney(Pay);
                }
                
            }
        }
        
    }