fixed points on corners for isInside

Points on vertices of polygon were returning false in isInside(). They
now return true.
added isOnLine() function

isOnLine() checks to see whether a given point is on a line defined by
two other points
setButtons() moved

setButtons() should be placed in main.lua for specific project.