Added some methods. Fixed sameSide.