pseudocode additions for placing tile