         if (isGold(centerBlock))
         {
             engine.notify( "GOLD COIN" );
-            gameField[blockIdx(player.center().x,player.center().y)] = 0;
+            set_block_at(player.center(), 0);
             goldCollection++;
             showGameInfo();
             engine.refresh(0,0,63,7);

#include "intf/spi/ssd1306_spi.h"

// Uncomment if you have ssd1331 oled display
//#define SSD1331_ACCELERATION

typedef NanoEngine<TILE_16x16_RGB8> GameEngine;


 */
void beep(int bCount,int bDelay);

NanoFixedSprite<GameEngine, engine> player( game_window.p1 + (NanoPoint){ 8, 8 }, { 8, 8 }, nullptr );

/* The variable is used for player animation      *
 * The graphics defined for the hero has 2 images *
