Replaced | with Math.floor
Fixed some "unused code" errors.
Updated curly brace linting