more functionality for the bricks and some debugging lines

Signed-off-by: Alexander Skjolden <alex@plastboks.net>