Added block capture
Implemented movement bound checking
Refactored block capture code