added more obstacle functions
fixed require issue on front end and added css