Removed unused variables and collision resolving
Added visiblity rect
Cleaned up collision code
Renaming