Shape Overflow Fix

This update fixes the bug where placing a shape that exceeds the grid
crashes the game and sends an error.