used optional ? syntax instead of if statements in some places.

added helper method to calculate tileVIew's new frame before it is set.