Modifieded grido to generate a sprite batch depending on the matrix pased as a parameter on the new method CreateLayer, also added a marker showing the current position ofd the mouse and showing if the movment is valid