Parameterize tile size instead of using hard coded constants
Make display resolution 512x512 instead of 640x480 for simplicity