@ -291,10 +291,11 @@ int checkBallPosition()
{
return 1;
}
else if (BinY > Bally || field[Ballx][Bally - 1] == '_' || Ballx > fieldWidth || Ballx < 0)
else if (BinY + 1 >= Bally || field[Ballx][Bally - 1] == '_' || Ballx >= fieldWidth || Ballx <= 0)
return 2;
return 0;
void sortScoreboard()