I'm making tetris game using javascript and html, my board is made up of a grid of divs.
When I rotate my tetris piece, I can rotate it into other pieces, additionally I can rotate them off the grid and onto the other side.
Please help me fix this error