An attempt at creating a C++ sprite (game) engine