added a log method to track movements of block
added log function