Engine and loop functionality

Added slowDown(void) and relocated main loop to tcpServer function