@name hcgui5
@inputs 
@outputs CLICK_CellA
@persist 
@trigger none
@model models/hunter/plates/plate2x2.mdl

if (first()) {
    
    #include "games/chess/hex/lib/chess"
    
    Game = game_from_fen(NewGame)

}

elseif (Status == "Loading") {
    
    loadgame()    
    
}

elseif (Status == "Loaded") {
    
    rungame()

}

#[ TODO:
    - promotion DONE
    - en passant
    - pawn cant take king DONE
    - king cant take king DONE
]#
