Added ability to castle in browser