grid is now properly functioning as an instance varible.