fixed collision detection bug causing the player to get stuck on corners, passing init options to webgl context