Square Pattern Code In Python For Games