Rewrote logic in Block using struct Pos instead of calculating each coordinate separately