Perhaps you could provide us with a little more information about what systems you are using. (Are you using SDL? DirectX? WinAPI? Xlib? KDE? DOS console? Are you on Windows? Linux? Sun OS? How are your images stored? What do you mean by a 10x10 grid? etc.)