If you don't have a square pan you could use a round cake pan instead, though your cook time might be a bit longer as the dish will be more crowded.