Core code implemented

Flood fill added, input and output structure exists