Changed numbers with constants (ROWS)
Added a new helping class
Refactored the "generateRandom" method to be more readable, fixed an issue caused when the grid is full