public SquaresMatrix(int r, int c, int w, int o) { rows = r; columns = c; offset = o; squareWidth = w; score = 0; combo = 0; numberOfSquares = 5; numberOfSquaresPainted = 0; gameOver = false; random = new Random(); randomImage = new RandomImage(); gameSound = new Sounds(); selectedSquare = null; selectedSquareDest = null; initializeMatrix(); paintRandomSquares(numberOfSquares); }