Reduced number of checks done in each iteration by calculating repeated formulas as variables and moved monitor check into its own if block. This also makes reading the code much easier since the code is essentially its own comment.
Shrunk top-center bounds check from +- 1/2 column to +- 1/5 column