added a very rudimentary rotate function for bricks

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