This is my own implementation of the grid for random enemies appear on the game screen (prevents from enemies overlapping). Feel free to use.