Right, so here's the full code i've made.
#include <nds.h>
#include <stdio.h>
//---------------------------------------------------------------------------------
void createSquare(int x, int y, OamState *screen, u16 *graphics, u16 color);
bool isRunning = true;
touchPosition touch;
int...